<?php 
$loaitinct = $tc->chitiet_loaitin($idLT);
$row_lt = mysql_fetch_assoc($loaitinct);
$ip = $tc->sanpham_theoloai($idLT,-1,-1);
$number= mysql_num_rows($ip);
?>
<ul class="menupage">            
    <li class="current"><a href="http://vietancorp.vn">Trang chủ</a></li>
    <li><img src="img/icons/bread_arrow.png"></li>
    <li class="current"><a href="javascript:void(0)"><?php echo $row_lt['TenTL'];?></a></li>
    <li><img src="img/icons/bread_arrow.png"></li>
    <li><?php echo $row_lt['TenLT'];?></li>
</ul>
<div class="description_cate" style="margin: 10px;"></div>
<div class="main_product"><!--Begin main_product-->  
    <?php if($number > 0){ ?>
    <ul class="listitem item_four " id="0default">
        <ul class="portfolio-area">
            <?php
            
            while ($row_ip = mysql_fetch_assoc($ip)) {
                ?>
                <li class="portfolio-item2" >
                    <div class="pd-home">               
                        <div class="pd-img">                    
                            <a class="image-zoom" href="detail/<?php echo $row_ip['MaSP_KD'] . "-" . $row_ip['idSP']; ?>.html" title="<?php echo $row_ip['TenSP']; ?>" >
                                <img src="<?php echo str_replace('../', '', $row_ip['UrlHinh']) ?>" alt="VDT-108 ">
                            </a>            
                        </div>                
                        <a href="detail/<?php echo $row_ip['MaSP_KD'] . "-" . $row_ip['idSP']; ?>.html"><h2><?php echo $row_ip['TenSP']; ?></h2></a> 

                        <div class="price">   
                            <span class="price-nosale">Giá: <?php echo $row_ip['Gia']; ?></span>    
                        </div>					

                    </div>
                </li>
            <?php } ?>                     
        </ul> 
    </ul>     
    <?php } else{ ?>
    <div style="padding:10px;font-weight: bold;font-style: italic;height: 500px">Hiện chưa có sản phẩm nào!</div>
    <?php } ?>
</div> 
<script type="text/javascript">
$(function(){
   $('ul.sub_category').hide();
   $('ul.sub_category').has('a[idLT="'+<?php echo $idLT; ?>+'"]').show();
   $('a[idLT="'+<?php echo $idLT; ?>+'"]').css({'color':'#B21414','font-weight':'bold'});   
});
</script>